package org.domain.sisteste.entity;

// Generated 12/11/2013 11:37:44 by Hibernate Tools 3.4.0.CR1

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

/**
 * TtTratamentointerrupcao generated by hbm2java
 */
@Entity
@Table(name = "tt_tratamentointerrupcao")
public class TratamentoInterrupcao implements java.io.Serializable {

	private Integer idTratamentoInterrupcao;
	private String noTratamentoInterrupcao;
	private Set<Software> tbSoftwares = new HashSet<Software>(0);

	public TratamentoInterrupcao() {
	}

	public TratamentoInterrupcao(String noTratamentoInterrupcao) {
		this.noTratamentoInterrupcao = noTratamentoInterrupcao;
	}

	public TratamentoInterrupcao(String noTratamentoInterrupcao,
			Set<Software> tbSoftwares) {
		this.noTratamentoInterrupcao = noTratamentoInterrupcao;
		this.tbSoftwares = tbSoftwares;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID_TratamentoInterrupcao", unique = true, nullable = false)
	public Integer getIdTratamentoInterrupcao() {
		return this.idTratamentoInterrupcao;
	}

	public void setIdTratamentoInterrupcao(Integer idTratamentoInterrupcao) {
		this.idTratamentoInterrupcao = idTratamentoInterrupcao;
	}

	@Column(name = "NO_TratamentoInterrupcao", nullable = false, length = 45)
	@NotNull
	@Length(max = 45)
	public String getNoTratamentoInterrupcao() {
		return this.noTratamentoInterrupcao;
	}

	public void setNoTratamentoInterrupcao(String noTratamentoInterrupcao) {
		this.noTratamentoInterrupcao = noTratamentoInterrupcao;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "ttTratamentointerrupcao")
	public Set<Software> getTbSoftwares() {
		return this.tbSoftwares;
	}

	public void setTbSoftwares(Set<Software> tbSoftwares) {
		this.tbSoftwares = tbSoftwares;
	}

}
